package com.jy.api.dao;

import com.jy.api.domain.StoreOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by lihu on 2018/1/17.
 */
public interface StoreOrderDao extends CrudRepository<StoreOrder, String> {


    Page<StoreOrder> findByStoreIdAndSuccessOrderByUpdateTimeDesc(String storeId, boolean success, Pageable pageable);
}
